
<%@ page import="fleet_management.VehicleOnDuty" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'vehicleOnDuty.label', default: 'VehicleOnDuty')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-vehicleOnDuty" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-vehicleOnDuty" class="content scaffold-show" role="main">
			<h1 style="margin-left:210px; width: 850px;">Vehicle On Duty Details</h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list vehicleOnDuty">
			
				<g:if test="${vehicleOnDutyInstance?.vehicleNumber}">
				<li class="fieldcontain">
					<span id="vehicleNumber-label" class="property-label"><g:message code="vehicleOnDuty.vehicleNumber.label" default="Vehicle Number" /></span>
					
						<span class="property-value" aria-labelledby="vehicleNumber-label"><g:fieldValue bean="${vehicleOnDutyInstance}" field="vehicleNumber"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${vehicleOnDutyInstance?.kmReadingInitial}">
				<li class="fieldcontain">
					<span id="kmReadingInitial-label" class="property-label"><g:message code="vehicleOnDuty.kmReadingInitial.label" default="Km Reading Initial" /></span>
					
						<span class="property-value" aria-labelledby="kmReadingInitial-label"><g:fieldValue bean="${vehicleOnDutyInstance}" field="kmReadingInitial"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${vehicleOnDutyInstance?.kmReadingFinish}">
				<li class="fieldcontain">
					<span id="kmReadingFinish-label" class="property-label"><g:message code="vehicleOnDuty.kmReadingFinish.label" default="Km Reading Finish" /></span>
					
						<span class="property-value" aria-labelledby="kmReadingFinish-label"><g:fieldValue bean="${vehicleOnDutyInstance}" field="kmReadingFinish"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${vehicleOnDutyInstance?.typeOfUse}">
				<li class="fieldcontain">
					<span id="typeOfUse-label" class="property-label"><g:message code="vehicleOnDuty.typeOfUse.label" default="Type Of Use" /></span>
					
						<span class="property-value" aria-labelledby="typeOfUse-label"><g:fieldValue bean="${vehicleOnDutyInstance}" field="typeOfUse"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${vehicleOnDutyInstance?.totalPrivateUseKm}">
				<li class="fieldcontain">
					<span id="totalPrivateUseKm-label" class="property-label"><g:message code="vehicleOnDuty.totalPrivateUseKm.label" default="Total Private Use Km" /></span>
					
						<span class="property-value" aria-labelledby="totalPrivateUseKm-label"><g:fieldValue bean="${vehicleOnDutyInstance}" field="totalPrivateUseKm"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${vehicleOnDutyInstance?.rateOfPrivateUseKm}">
				<li class="fieldcontain">
					<span id="rateOfPrivateUseKm-label" class="property-label"><g:message code="vehicleOnDuty.rateOfPrivateUseKm.label" default="Rate Of Private Use Km" /></span>
					
						<span class="property-value" aria-labelledby="rateOfPrivateUseKm-label"><g:fieldValue bean="${vehicleOnDutyInstance}" field="rateOfPrivateUseKm"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${vehicleOnDutyInstance?.totalIncomeFromPrivateUse}">
				<li class="fieldcontain">
					<span id="totalIncomeFromPrivateUse-label" class="property-label"><g:message code="vehicleOnDuty.totalIncomeFromPrivateUse.label" default="Total Income from Private Use" /></span>
					
						<span class="property-value" aria-labelledby="totalIncomeFromPrivateUse-label"><g:fieldValue bean="${vehicleOnDutyInstance}" field="totalIncomeFromPrivateUse"/></span>
					
				</li>
				</g:if>
				
				<g:if test="${vehicleOnDutyInstance?.adminRole}">
				<li class="fieldcontain">
					<span id="adminRole-label" class="property-label"><g:message code="vehicleOnDuty.adminRole.label" default="Region Admin" /></span>
					
						<span class="property-value" aria-labelledby="adminRole-label"><g:fieldValue bean="${vehicleOnDutyInstance}" field="adminRole"/></span>
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${vehicleOnDutyInstance?.id}" />
					<g:link class="edit" action="edit" id="${vehicleOnDutyInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
